Insert this where you wana display network information in index.php $action="viewuser"



////////////////////////////////////////
$uipadd = mysql_fetch_array(mysql_query("SELECT ipadd FROM ibwf_users WHERE id='".$who."'"));
$IPaddress=$uipadd[0];
$two_letter_country_code=iptocountry($IPaddress);
echo "<b>Flag:</b> <img src=\"flags/$two_letter_country_code.gif\" alt=\"*\" /><br/>\n";
echo "<b>Country:</b> $two_letter_country_code<br/>";
$subno = mysql_fetch_array(mysql_query("SELECT subno FROM ibwf_users WHERE id='".$who."'"));
echo "<b>Network:</b> $subno[0]</br>";
////////////////////////////////////////